<div id="sidebar-menu">
    <p>Account</p>
    <ul>
        <li><a href="/admin/account">My Profile</a></li>
        <li><a href="/admin/account/edit">Edit Profile</a></li>
        <li><a href="/admin/account/change">Change Password</a></li>
        <li><a href="/auth/logout">Logout (<?php echo Zend_Auth::getInstance()->getIdentity()->username ?>)</a></li>
    </ul>
</div>
<?php if (Zend_Auth::getInstance()->getIdentity()->admin): ?>
<div id="sidebar-menu">
    <p>Users</p>
    <ul>
        <li><a href="/admin/user/list">Users</a></li>
    </ul>
</div>
<?php endif; ?>
<?php if ($this->hasBlog(Zend_Auth::getInstance()->getIdentity()->username)): ?>
<div id="sidebar-menu">
    <p>Entries</p>
    <ul>
        <li><a href="/admin/entry/list">Entries</a></li>
        <li><a href="/admin/entry/add">New Entry</a></li>
    </ul>
</div>
<?php else: ?>
<div id="sidebar-menu">
    <p>Blog</p>
    <ul>
        <li><a href="/admin/blog/create">Create Blog</a></li>
    </ul>
</div>
<?php endif; ?>